all: pkg
	echo finished

dep:
	pipreqs ./  --force  --encoding=utf-8

pip:
	pip3 install -r requirements.txt

pkg:
	python3 -m PyInstaller -F ./s2c.py

#spec:
#	pyinstaller -F ./s2c.spec

clean:
	rm -rf build/
	rm -rf dist/

# clear cache
clear:
	rm -rf __pycache__
	rm -rf s2c/__pycache__
	rm -rf s2c/api/__pycache__
	rm -rf s2c/engine/__pycache__
	rm -rf s2c/rules/__pycache__
	rm -rf s2c/tools/__pycache__
	rm -rf s2c/ui/__pycache__
	rm -rf s2c/ui/cli/__pycache__
	rm -rf s2c/tests/__pycache__
	rm -rf s2c/rules/__pycache__
	rm -rf s2c/service/__pycache__
	rm -f s2c/*.pyo
	rm -f s2c/engine/*.pyo
	rm -f s2c/rules/*.pyo
	rm -f s2c/tools/*.pyo
#	pyinstaller -F s2c.spec

